//package com.paddyi.configuration;
//
//import com.paddyi.config.HmilyConfigProperties;
//import org.dromara.hmily.core.bootstrap.HmilyTransactionBootstrap;
//import org.dromara.hmily.core.service.HmilyInitService;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.beans.factory.annotation.Qualifier;
//import org.springframework.boot.context.properties.EnableConfigurationProperties;
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Configuration;
//import org.springframework.context.annotation.EnableAspectJAutoProxy;
//
//
//@Configuration
//@EnableAspectJAutoProxy(proxyTargetClass = true)
//@EnableConfigurationProperties
//public class HmilyAutoConfiguration {
//
//    @Autowired
//    @Qualifier("hmilyConfigProperties")
//    HmilyConfigProperties tccConfigProperties;
//
//    @Autowired
//    HmilyInitService hmilyInitService;
//
//    @Bean
//    @Qualifier("hmilyTransactionBootstrap")
//    public HmilyTransactionBootstrap hmilyTransactionBootstrap(HmilyInitService hmilyInitService) {
//        System.out.println(121);
//        final HmilyTransactionBootstrap hmilyTransactionBootstrap = new HmilyTransactionBootstrap(hmilyInitService);
//        hmilyTransactionBootstrap.setBufferSize(tccConfigProperties.getBufferSize());
//        hmilyTransactionBootstrap.setRetryMax(tccConfigProperties.getRetryMax());
//        hmilyTransactionBootstrap.setRecoverDelayTime(tccConfigProperties.getRecoverDelayTime());
//        hmilyTransactionBootstrap.setRepositorySuffix(tccConfigProperties.getRepositorySuffix());
//        hmilyTransactionBootstrap.setRepositorySupport(tccConfigProperties.getRepositorySupport());
//        hmilyTransactionBootstrap.setScheduledDelay(tccConfigProperties.getScheduledDelay());
//        hmilyTransactionBootstrap.setScheduledInitDelay(tccConfigProperties.getScheduledInitDelay());
//        hmilyTransactionBootstrap.setScheduledThreadMax(tccConfigProperties.getScheduledThreadMax());
//        hmilyTransactionBootstrap.setSerializer(tccConfigProperties.getSerializer());
//        hmilyTransactionBootstrap.setHmilyFileConfig(tccConfigProperties.getHmilyFileConfig());
//        hmilyTransactionBootstrap.setHmilyDbConfig(tccConfigProperties.getHmilyDbConfig());
//        hmilyTransactionBootstrap.setHmilyRedisConfig(tccConfigProperties.getHmilyRedisConfig());
//        hmilyTransactionBootstrap.setHmilyZookeeperConfig(tccConfigProperties.getHmilyZookeeperConfig());
//        hmilyTransactionBootstrap.setHmilyMongoConfig(tccConfigProperties.getHmilyMongoConfig());
//        hmilyTransactionBootstrap.setConsumerThreads(tccConfigProperties.getConsumerThreads());
//        hmilyTransactionBootstrap.setLoadFactor(tccConfigProperties.getLoadFactor());
//        hmilyTransactionBootstrap.setAsyncThreads(tccConfigProperties.getAsyncThreads());
//        hmilyTransactionBootstrap.setConcurrencyScale(tccConfigProperties.getConcurrencyScale());
//        return hmilyTransactionBootstrap;
//    }
//}
